package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.GameZpJiangpinDao;
import com.vf.admin.miaodong.entity.GameZpJiangpin;
import com.vf.admin.miaodong.service.GameZpJiangpinService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * 大转盘奖励
 */
@Service
public class GameZpJiangpinServiceImpl implements GameZpJiangpinService {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private GameZpJiangpinDao jiangpinDao;

    /**
     * 保存或者更新
     */
    @Override
    public void save(GameZpJiangpin jiangpin) {
        jiangpinDao.save(jiangpin);
    }

    /**
     * 详情
     * @param id
     * @return
     */
    @Override
    public GameZpJiangpin get(Integer id) {
        return jiangpinDao.get(id);
    }

    /**
     * 列表查询
     * @param paraMap
     * @param splitPage
     * @return
     */
    @Override
    public List<GameZpJiangpin> findList(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return jiangpinDao.findList(paraMap,splitPage);
    }

    /**
     * 删除
     */
    @Override
    public void del(int id) {
        jiangpinDao.del(id);
    }

    /**
     * 修改大转盘概率
     */
    @Override
    public void modificationProbability(int id,String oneGl,String laterGl,String canyuState) {
        jiangpinDao.modificationProbability(id,oneGl,laterGl,canyuState);
    }
}
